from django.contrib import admin
from .models import MatchmakingQueue


@admin.register(MatchmakingQueue)
class MatchmakingQueueAdmin(admin.ModelAdmin):
    """匹配队列管理"""
    list_display = ('user', 'deck', 'is_active', 'joined_at')
    list_filter = ('is_active', 'joined_at')
    search_fields = ('user__username', 'user__nickname', 'deck__name')
    ordering = ('-joined_at',)
